/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Copyright (C) 2020-2025 OpenFOAM Foundation
     \\/     M anipulation  |
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

\*---------------------------------------------------------------------------*/

#ifndef forGases_H
#define forGases_H

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include "specie.H"

#include "Boussinesq.H"
#include "perfectGas.H"

#include "eConstThermo.H"
#include "hConstThermo.H"
#include "janafThermo.H"

#include "sensibleEnthalpy.H"
#include "sensibleInternalEnergy.H"

#include "constTransport.H"
#include "sutherlandTransport.H"
#include "polynomialTransport.H"

#include "thermo.H"

#include "forThermo.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#define forGasEqns(Mu, He, Cp, Macro, Args...)                                 \
    forThermo(Mu, He, Cp, Boussinesq, specie, Macro, Args);                    \
    forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)

#define forGasEnergiesAndThermos(Mu, Macro, Args...)                           \
    forGasEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args);               \
    forGasEqns(Mu, sensibleEnthalpy, janafThermo, Macro, Args);                \
    forGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args);         \
    forGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args);         \
    forGasEqns(Mu, sensibleInternalEnergy, janafThermo, Macro, Args)

#define forGasTransports(Macro, Args...)                                       \
    forGasEnergiesAndThermos(constTransport, Macro, Args);                     \
    forGasEnergiesAndThermos(sutherlandTransport, Macro, Args)

#define forGases(Macro, Args...)                                               \
    forGasTransports(Macro, Args)

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#define forCoeffGasEqns(Mu, He, Cp, Macro, Args...)                           \
    forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)

#define forCoeffGasEnergiesAndThermos(Mu, Macro, Args...);                    \
    forCoeffGasEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args);         \
    forCoeffGasEqns(Mu, sensibleEnthalpy, janafThermo, Macro, Args);          \
    forCoeffGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args);   \
    forCoeffGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args);   \
    forCoeffGasEqns(Mu, sensibleInternalEnergy, janafThermo, Macro, Args)

#define forCoeffGasTransports(Macro, Args...)                                 \
    forCoeffGasEnergiesAndThermos(constTransport, Macro, Args);               \
    forCoeffGasEnergiesAndThermos(sutherlandTransport, Macro, Args)

#define forCoeffGases(Macro, Args...)                                         \
    forCoeffGasTransports(Macro, Args)

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#define forEnergyGasEqns(Mu, He, Cp, Macro, Args...)                           \
    forThermo(Mu, He, Cp, Boussinesq, specie, Macro, Args);                    \
    forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)

#define forEnergyGasEnergiesAndThermos(Mu, Macro, Args...)                     \
    forEnergyGasEqns(Mu, sensibleInternalEnergy, eConstThermo, Macro, Args);   \
    forEnergyGasEqns(Mu, sensibleInternalEnergy, hConstThermo, Macro, Args);   \
    forEnergyGasEqns(Mu, sensibleInternalEnergy, janafThermo, Macro, Args)

#define forEnergyGasTransports(Macro, Args...)                                 \
    forEnergyGasEnergiesAndThermos(constTransport, Macro, Args);               \
    forEnergyGasEnergiesAndThermos(sutherlandTransport, Macro, Args)

#define forEnergyGases(Macro, Args...)                                         \
    forEnergyGasTransports(Macro, Args)

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#define forCoeffEnthalpyGasEqns(Mu, He, Cp, Macro, Args...)                    \
    forThermo(Mu, He, Cp, perfectGas, specie, Macro, Args)

#define forCoeffEnthalpyGasEnergiesAndThermos(Mu, Macro, Args...)              \
    forCoeffEnthalpyGasEqns(Mu, sensibleEnthalpy, hConstThermo, Macro, Args);  \
    forCoeffEnthalpyGasEqns(Mu, sensibleEnthalpy, janafThermo, Macro, Args)

#define forCoeffEnthalpyGasTransports(Macro, Args...)                          \
    forCoeffEnthalpyGasEnergiesAndThermos(constTransport, Macro, Args);        \
    forCoeffEnthalpyGasEnergiesAndThermos(sutherlandTransport, Macro, Args);   \
    forCoeffEnthalpyGasEnergiesAndThermos(polynomialTransport, Macro, Args)

#define forCoeffEnthalpyGases(Macro, Args...)                                  \
    forCoeffEnthalpyGasTransports(Macro, Args)

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#endif

// ************************************************************************* //
